From 871d25f4d0187d37f77765d6a272c41277327ff4 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 14 Nov 2002 05:17:08 +0000 Subject: [PATCH] Make debug levels more sensible. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@155 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/garmin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gpsbabel/garmin.c b/gpsbabel/garmin.c index dd969665a..0e72b7c38 100644 --- a/gpsbabel/garmin.c +++ b/gpsbabel/garmin.c @@ -29,11 +29,14 @@ static const char *portname; static void rw_init(const char *fname, const char *opts) { - if (global_opts.debug_level > 1) { + if (global_opts.debug_level > 0) { GPS_Enable_Warning(); GPS_Enable_User(); GPS_Enable_Diagnose(); } + if (global_opts.debug_level > 1) { + GPS_Enable_Diagnose(); + } GPS_Enable_Error(); if (GPS_Init(fname) < 0) { -- 2.30.2